package com.tensquare.qa.client;


import com.tensquare.qa.client.impl.BaseClientImpl;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 用Feign调用基础微服务
 * @author 11752
 */
@FeignClient(value = "tensquare-base",fallback = BaseClientImpl.class)
public interface BaseClient {

    /**
     * 根据ID查询标签
     *
     * @param labelid labelid
     * @return 结果
     */
    @RequestMapping(value = "/label/{labelid}", method = RequestMethod.GET)
    Result findById(@PathVariable String labelid);

}
